package com.phones;

import java.util.ArrayList;
import java.util.List;

class Employee{
	int id;
	String name;
	List phone;
	Employee(){}
	Employee(int id,String name,List phone){
		this.id=id;
		this.name=name;
		this.phone=phone;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List getPhone() {
		return phone;
	}
	public void setPhone(List phone) {
		this.phone = phone;
	}
	public String toString(){
		return id+"\t"+name+"\t"+phone;
	}
}
public class EmpDetails {
public static void main(String[] args) {
	Employee e1=new Employee();
	e1.setId(101);
	e1.setName("deepak");
	ArrayList al=new ArrayList();
	e1.setPhone(new ArrayList(88888));
	e1.setPhone(new ArrayList(8900909));
	al.add(e1);
	System.out.println(e1+""+al);
}
}
